#define _CRT_SECURE_NO_WARNINGS 1

int hehe(int x)
{
	if (x >= 10)
	{
		return (x % 10) + hehe(x / 10);
	}
	else
	{
		return x;
	}
}

int main()
{
	printf("%d", hehe(1234));


	return 0;
}